/**
 * 
 */
package com.nph.fireworks.client.mvp;

import java.util.Date;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasValue;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.datepicker.client.DatePicker;

/**
 * @author harveya
 * 
 */
public class ConfigView extends Composite implements ConfigPresenter.Display {
	@UiTemplate("ConfigView.ui.xml")
	interface SearchViewUiBinder extends UiBinder<Widget, ConfigView> {
	}

	@UiField
	DatePicker datePicker;
	
	@UiField
	Hyperlink startButton;
	
	private static SearchViewUiBinder uiBinder = GWT
			.create(SearchViewUiBinder.class);

	public ConfigView() {
		initWidget(uiBinder.createAndBindUi(this));
	}


	public Widget asWidget() {
		return this;
	}
	
	public HasValue<Date> getSelectedDate() {
		return datePicker;
	}

	public HasClickHandlers getStartButton() {
		return startButton;
	}
}
